<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page session="false" %>

<html>
<head>
	<link href="<c:url value="/resources/css/fleats.css" />" rel="stylesheet" type="text/css" media="screen" />
	<title>RATUC fleet</title>
</head>
<body>
<div class="container">
<h1>RATUC Cluj-Napoca total fleet count:</h1>
<c:if test="${not empty fleats}">
	
	<table class="normal-table">
		<thead>
			<tr>
				<th>Nr. crt.</th>
				<th>Vehicle type</th>
				<th>Nr. of vehicles</th>
				<th>Category</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach var="fleat" items="${fleats}">
			<tr>
				<td>${fleat.id}</td>
				<td>${fleat.name}</td>
				<td>${fleat.count}</td>
				<td>${fleat.category.getDescription()}</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
</c:if>
</div>
</body>	
</html>